package com.bootdo.coach.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.coach.dao.TabChargeTypeMapper;
import com.bootdo.coach.dao.ext.ExtTabChargeTypeMapper;
import com.bootdo.coach.domain.TabChargeType;
import com.bootdo.coach.service.TabChargeTypeService;


@Service
public class TabChargeTypeServiceImpl implements TabChargeTypeService {
    @Autowired
    private TabChargeTypeMapper mapper;
    @Autowired
    private ExtTabChargeTypeMapper extMapper;

	@Override
	public int deleteByPrimaryKey(Integer chargeTypeId) {
		return mapper.deleteByPrimaryKey(chargeTypeId);
	}

	@Override
	public int insert(TabChargeType record) {
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(TabChargeType record) {
		return mapper.insertSelective(record);
	}

	@Override
	public TabChargeType selectByPrimaryKey(Integer chargeTypeId) {
		return mapper.selectByPrimaryKey(chargeTypeId);
	}

	@Override
	public int updateByPrimaryKeySelective(TabChargeType record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TabChargeType record) {
		return mapper.updateByPrimaryKey(record);
	}

    @Override
    public List<TabChargeType> findChargeTypeList() {
    	return extMapper.findChargeTypeList();
    }
}
